package org.rxc.org.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.rxc.base.domain.BaseDomain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Data
public class Department extends BaseDomain {
  @ApiModelProperty(value = "部门名称")
  private String name;
  @ApiModelProperty("部门简介")
  private String intro;
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
  private Date create_time;
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
  private Date update_time;
  //管理员id 关联 的employee 的id  这个部门的负责人
  @ApiModelProperty("部门经理对应员工表")
  private Long manager_id;
  //上级部门的id
  @ApiModelProperty("上级部门")
  private Long parent_id;
  private String path;
  private Integer state;

  private Employee manager;
  private Department parent;


  private List<Department> children = new ArrayList<>();
}
